package com.zyg.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName("student")
@Data
public class Student {
    @TableId(value = "student_id",type = IdType.AUTO)
    private Integer studentId;
    private String studentName;
    private String studentSex;
    @TableField(exist = false)
    private Clazz clazz;
    private Integer clazzId;
    @TableField(exist = false)
    private Hostel hostel;
    private Integer hostelId;
    @TableField(exist = false)
    private Major major;
    private Integer majorId;


}
